import {Checkbox} from "antd";
import FormItem from "antd/es/form/FormItem";
import {CheckboxProps} from "./dev.tsx";

const CheckboxProd = (props:CheckboxProps) => {
    return (
        <div style={props.styles}>
            <FormItem>
                <FormItem  label={props.label} name={props.name} rules={props.rule} style={{margin:"0",...props.styles}}>
                    <Checkbox.Group  options={props.options || []}/>
                </FormItem>
            </FormItem>
        </div>
    );
};

export default CheckboxProd;